<template>
    <div>
        <!-- <button @click="goAbout(123)">query跳转传参</button> -->
        <button @click="goHome(2345678)">params路由传参</button>
    </div>
</template>
<script>
export default {
    data() {
        return {
            
        }
    },
    methods: {
        // goAbout(id){
        //     this.$router.push({name: 'about',query:id})
        // },
        goHome(id){
            this.$router.push({name: 'about',params:{id}})
        }
    },
}
</script>